package com.pmcc.yn.entity;

import com.pmcc.core.entity.UUIDEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author liliguo 1月14号
 * 附件表
 */
@Entity
@Table(name = "js_enclosure")
@ApiModel(value = "附件表" ,description = "附件的基础信息")

    public class EnclosureInfo extends UUIDEntity{

        @Column(name = "owner_table")
        @ApiModelProperty(value = "ownerTable", required = true)
        private String ownerTable;//所属表

        @Column(name = "photo_name")
        @ApiModelProperty(value = "photoName", required = true)
        private String photoName;//照片名称

        @Column(name = "photo_type")
        @ApiModelProperty(value = "photoType", required = true)
        private String photoType;// 照片类型

        @Column(name = "photo_address")
        @ApiModelProperty(value = "photoAddress", required = true)
        private String photoAddress;//照片地址

        @Column(name = "sort")
        @ApiModelProperty(value = "sort", required = true)
        private String sort;//排序

        @Column(name = "create_time")
        @ApiModelProperty(value = "createTime", required = false)
        private Date createTime;//创建时间

        @Column(name = "del_flag")
        @ApiModelProperty(value = "delFlag", required = false)
        private Integer delFlag;//删除标志

        public String getOwnerTable() {
            return ownerTable;
        }

        public void setOwnerTable(String ownerTable) {
            this.ownerTable = ownerTable;
        }

        public String getPhotoName() {
            return photoName;
        }

        public void setPhotoName(String photoName) {
            this.photoName = photoName;
        }

        public String getPhotoType() {
            return photoType;
        }

        public void setPhotoType(String photoType) {
            this.photoType = photoType;
        }

        public String getPhotoAddress() {
            return photoAddress;
        }

        public void setPhotoAddress(String photoAddress) {
            this.photoAddress = photoAddress;
        }

        public String getSort() {
            return sort;
        }

        public void setSort(String sort) {
            this.sort = sort;
        }

        public Date getCreateTime() {
            return createTime;
        }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
        }

        public Integer getDelFlag() {
            return delFlag;
        }

        public void setDelFlag(Integer delFlag) {
            this.delFlag = delFlag;
        }
    }




